package com.situ.shoplook.dubbo.dao;

import com.situ.shoplook.common.model.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CategoryDao {
    List<Category> findAll();

    Category findById(Integer id);

    int save(Category category);

    int update(Category category);

    int deleteByIds(@Param("ids") Integer[] ids);

    Category findByName(String name);

    Category findByParentId(Integer id);

    List<Integer> findChildren(Integer id);
}
